# coding:utf-8
'''
Created on 2010-1-7

@author: Jason Green
@author-email: guileen@gmail.com
'''
from django.conf.urls.defaults import patterns

urlpatterns = patterns('djangosnippets.contrib.generic.crud',
    (r'^(?P<app_label>\w+)/(?P<model>\w+)/$', 'object_list'),
    (r'^(?P<app_label>\w+)/(?P<model>\w+)/create/$', 'object_create'),
    (r'^(?P<app_label>\w+)/(?P<model>\w+)/(?P<object_id>\d+)/$', 'object_detail'),
    (r'^(?P<app_label>\w+)/(?P<model>\w+)/(?P<object_id>\d+)/edit/$', 'object_update'),
    (r'^(?P<app_label>\w+)/(?P<model>\w+)/(?P<object_id>\d+)/delete/$', 'object_delete'),
)